<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="/css/layui.css">
<link rel="stylesheet" href="/css/list.css"></link>
<script src="/js/jquery-3.7.1.min.js"></script>
<body>
<div class="containner">

    <!--<div class="layui-form-item">
        <div class="layui-input-group">
            <input type="text" id="studentName" placeholder="请输入学生姓名" class="layui-input">
            <div class="layui-input-split layui-input-suffix" style="cursor: pointer;" id="search">
                <i class="layui-icon layui-icon-search"></i>
            </div>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" id="clear">重置</button>

        </div>
        &lt;!&ndash;<button type="button" class="layui-btn " id="add">新增</button>&ndash;&gt;
    </div>-->
    <div class="layui-row">
        <div class="layui-col-xs12 toolbar" >
            <div class="queryBox">
                <form class="layui-form" id="queryForm">
                    <ul class="query-inline">
                        <li class="layui-input-group">
                            <div class="layui-input-prefix">
                                学号
                            </div>
                            <input type="text" name="sno" placeholder="学号"  class="layui-input" id="sno">
                        </li>
                        <li class="layui-input-group">
                            <div class="layui-input-prefix">
                                姓名
                            </div>
                            <input type="text" name="name" placeholder="姓名"  class="layui-input" id="name">
                        </li>
                        <li class="layui-input-group">
                            <div class="layui-input-prefix">
                                年龄
                            </div>
                            <input type="text" name="age" placeholder="年龄"  class="layui-input" id="age">
                        </li>
                        <li class="layui-input-group">
                            <div class="layui-input-prefix">
                                性别:
                            </div>
                            <select name="gender" >
                                <option value="">请选择</option>
                                <option value="男">男</option>
                                <option value="女">女</option>
                            </select>
                        </li>
                        <li class="layui-input-group">
                            <div class="layui-input-split layui-input-suffix" style="cursor: pointer;" id="search" onclick="search()">
                                <i class="layui-icon layui-icon-search"></i>
                            </div>
                            <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" id="clear" onclick="clean()">重置</button>
                        </li>
                    </ul>
                </form>
            </div>
            <div class="layui-btn-group">
                <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" id="add" onclick="showStudentDlg(); return false;">
                    <i class="layui-icon layui-icon-add-1">新增</i>
                </button>
                <button type="button" class="layui-btn layui-btn-xs layui-btn-normal layui-bg-red" id="del" onclick="deleteConfirm();" >
                    <i class="layui-icon layui-icon-delete">批量删除</i>
                </button>
                <button type="button" class="layui-btn layui-btn-xs layui-btn-normal layui-bg-cyan" id="reset-pw" onclick="resetPassword()"  >
                    <i class="layui-icon layui-icon-fonts-clear">重置密码</i>
                </button>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-xs12">
            <table class="layui-hide" id="tbStudent" lay-filter="tbStudent" lay-even></table>
       </div>
    </div>



</div>
<form class="layui-form dlgcontainer" id="studentForm" style="display: none">
    <div class="demo-reg-container">

        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-username"></i>
                </div>
                <input type="text" name="name" value="" lay-verify="required" placeholder="姓名" autocomplete="off" class="layui-input" lay-affix="clear" >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-vercode"></i>
                </div>
                <input type="text" name="stunumber" value="" lay-verify="required" placeholder="学号" lay-reqtext="请填写学号" autocomplete="off" class="layui-input"  >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-vercode"></i>
                </div>
                <input type="text" name="age" value="" lay-verify="required" placeholder="年龄" lay-reqtext="请填写年龄" autocomplete="off" class="layui-input"  >
            </div>
        </div>


        <div class="layui-form-item" pane >
            <label class="layui-form-label" style="width: 29px">性别</label>
            <div class="layui-input-block" id="gender" style="margin-left: 85px">
                <input type="radio" name="gender" value="男" title="男" checked>
                <input type="radio" name="gender" value="女" title="女">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-password"></i>
                </div>
                <input type="password" name="password" value="" lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input"  lay-affix="eye" >
            </div>
        </div>
        <div class="layui-form-item" >
            <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="stu-dlg" id="btnOK" >确定</button>
        </div>
    </div>
</form>
<script type="text/html" id="editTemplate">
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="edit"><i class="layui-icon layui-icon-edit"></i> 编辑</a>
    <a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="del"><i class="layui-icon layui-icon-delete"></i> 删除</a>
    <!--<button type="button" class="layui-btn layui-btn-sm layui-btn-normal" onclick="showStudentDlg(${item.id})"><i class="layui-icon layui-icon-edit"></i> 编辑</button>
    <button type="button" class="layui-btn layui-btn-sm layui-btn-danger" onclick="deleteById(${item.id})"><i class="layui-icon layui-icon-delete"></i> 删除</button>-->
</script>
<script src="/js/layui.js"></script>
<script src="/pagejs/student.js"></script>
</body>
</html>